package com.wyy.slidingtab;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android.widget.FrameLayout.LayoutParams;

public class CFrag extends Fragment {

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) {
		LayoutParams params = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
		TextView v=new TextView(getActivity());
		v.setLayoutParams(params);
		v.setGravity(Gravity.CENTER);
		v.setTextSize(30);
		v.setText("娱乐");
		return v;
	}
}
